﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HairFacebookApp.DTO
{
    public class QuestionDto
    {
        public QuestionDto()
        {
            Answers = new List<String>();
        }

        private String question;
        public String Question
        {
            get { return question; }
            set { question = value; }
        }

        private List<String> answers;
        public List<String> Answers
        {
            get { return answers; }
            set { answers = value; }
        }

        //yatta shitsumon
        private char choose;
        public char Choose
        {
            get { return choose; }
            set { choose = value; }
        }

        //Get user answer sentence
        public String getUserAnswer()
        {
            return Answers[Choose].ToString();
        }

        //Get user answer key
        public Char getUserAnswerKey()
        {
            Char result = new Char();
            switch (choose)
            {
                case 'A':
                    result = 'A';
                    break;
                case 'B':
                    result = 'B';
                    break;
                case 'C':
                    result = 'C';
                    break;
                case 'D':
                    result = 'D';
                    break;
                case 'E':
                    result = 'E';
                    break;
                case 'F':
                    result = 'F';
                    break;
            }
            return result;
        }

        //For the last question
        private String no5Answer;
        public String No5Answer
        {
            get { return no5Answer; }
            set { no5Answer = value; }
        }

        private String no5AnswerKey;
        public String No5AnswerKey
        {
            get { return no5AnswerKey; }
            set { no5AnswerKey = value; }
        }

    }
}